package com.erhuogo.service;

import java.util.List;

import com.erhuogo.bean.GridPageBean;
import com.erhuogo.bean.PageBean;
import com.erhuogo.entity.Favorite;
import com.erhuogo.entity.Member;

/**
 * 会员Service接口
 * @author aibinxiao
 * @date 2016年10月9日 下午4:19:22
 */
public interface MemberService {
	
	// 1.会员登录的Service接口
	public Member login(String username, String password);

	// 2.验证手机号是否已经注册Service接口
	public boolean findByPhoneNumber(String phoneNumber);

	// 3.用户注册Service接口
	public boolean addMember(Member member);

	// 4.分页查询用户Service接口
	public GridPageBean<Member> findByPage(String page, String rows, String id, String nickName, String startDate,
			String endDate);

	// 5.根据ID屏蔽用户Service接口
	public void updateStatus(String id, String status) throws Exception ;
	
	public Member getMemberById(String id);
	
	public boolean checkPassword(Member member);
	
	public boolean alterPws(String memId,String newPws);
	
	public boolean uploadPic(int memId, String path);
	
	public PageBean getCollections(int memId,String num); 
	
	public boolean deleteCollect(int fId);
}
 